package com.yuyou.fn.educational.entity;

import com.github.wens.mybatisplus.annotations.TableField;
import com.github.wens.mybatisplus.annotations.TableId;
import com.github.wens.mybatisplus.annotations.TableName;
import com.github.wens.mybatisplus.examples.Example;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * 优惠券
 *
 */
@TableName(value = "coupon")
public class Coupon implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	public static Example<Coupon> createExample(){
		return new Example<Coupon>(Coupon.class);
	}

	/**  */
	@TableId(value = "discount_rule_id")
	private Long discountRuleId;

	/** 优惠码 */
	private String code;

	/** 金额 */
	private BigDecimal amount;

	/** 说明 */
	private String remark;

	/** 优惠方式 0:系统优惠 1:人工创建 */
	@TableField(value = "come_from")
	private Integer comeFrom;

	/** 生效开始时间 */
	@TableField(value = "effective_start_time")
	private Date effectiveStartTime;

	/** 生效结束时间 */
	@TableField(value = "effective_end_time")
	private Date effectiveEndTime;

	/** 生效课程班级 */
	@TableField(value = "discount_more_info")
	private String discountMoreInfo;

	/** 使用时间 */
	@TableField(value = "used_time")
	private Date usedTime;

	/**  */
	@TableField(value = "create_time")
	private Date createTime;

	/**  */
	@TableField(value = "update_time")
	private Date updateTime;

	public Long getDiscountRuleId() {
		return this.discountRuleId;
	}

	public void setDiscountRuleId(Long discountRuleId) {
		this.discountRuleId = discountRuleId;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public BigDecimal getAmount() {
		return this.amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getComeFrom() {
		return this.comeFrom;
	}

	public void setComeFrom(Integer comeFrom) {
		this.comeFrom = comeFrom;
	}

	public Date getEffectiveStartTime() {
		return this.effectiveStartTime;
	}

	public void setEffectiveStartTime(Date effectiveStartTime) {
		this.effectiveStartTime = effectiveStartTime;
	}

	public Date getEffectiveEndTime() {
		return this.effectiveEndTime;
	}

	public void setEffectiveEndTime(Date effectiveEndTime) {
		this.effectiveEndTime = effectiveEndTime;
	}

	public String getDiscountMoreInfo() {
		return this.discountMoreInfo;
	}

	public void setDiscountMoreInfo(String discountMoreInfo) {
		this.discountMoreInfo = discountMoreInfo;
	}

	public Date getUsedTime() {
		return this.usedTime;
	}

	public void setUsedTime(Date usedTime) {
		this.usedTime = usedTime;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
